/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.grt192.utils;

/**
 *
 * @author Bonan
 */
public class Util {

    public static double roundValue(double val) {
        return round(val / .025) * .025;
    }

    public static int round(double x) {
        return ((int) x) + (x % 1 < .5 ? 0 : 1); 
    }

    public static double distance(double x, double y){
        return Math.sqrt(x*x + y*y);
    }
}
